﻿app.controller('OrdersCtrl', ['$scope', '$http', '$filter','httpPlus' ,function ($scope, $http, $filter,httpPlus) {
    $scope.tabs = [
        {
            "name": "历史订单",
            "value":1,
        },
        {
            "name": "消费中",
            "value": 2,
        },
          {
              "name": "未下单",
              "value": 3,
          }
    ]
    $scope.currTab = $scope.tabs[0];
    $scope.btnChooseTab_click = function (val) {
        $scope.currTab = val;
    };
    httpPlus
        .RRRApi('orders/initData')
        .then(function (data) {
            console.log(data);
            $scope.ordersList = data;
        });
    console.log('$scope.ordersList', $scope.ordersList);
}]);